using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Dynamic;
using YTS.Tools;

namespace Test.ConsoleProgram.Algorithm.Solution
{
    [TestDescription("算法: 0069. x 的平方根")]
    public class No0069_Sqrt : AbsBaseTestItem
    {
        public override void OnTest()
        {
            Assert.TestExe(MySqrt, 4, 2);
            Assert.TestExe(MySqrt, 8, 2);
        }

        public int MySqrt(int x)
        {
            int value = (int)Math.Sqrt(x);
            return value;
        }
    }
}
